<style>
    .layui-fixbar li {
        width: 40px;
        height: 40px;
        line-height: 40px;
        margin-bottom: 1px;
        text-align: center;
        cursor: pointer;
        font-size: 25px;
        background-color: #9F9F9F;
        color: #fff;
        border-radius: 2px;
        opacity: .95;
    }
</style>

<script>
    layui.use('util', function () {
        var util = layui.util;
        //执行
        util.fixbar({
            bar1: "&#xe65c;"
            , bar2: "&#xe604;"
            , css: {bottom: 0}
            , click: function (type) {
                console.log(type);
                if (type === 'bar1') {
                    history.go(-1);
                } else {
                    $('.layui-body').animate({
                        scrollTop: 0
                    }, 200);
                }
            }
        });

    });
</script>